package com.prd.client;

import com.prd.client.clientImpl.UserFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="main-service", fallback=UserFallback.class)
public interface UserFeignClient {

    @GetMapping("/hi")
    public String listUsers(@RequestParam(value = "username") String username, @RequestParam(value = "password") String password);

}